<template>
  <div class="jiatings">
    <div class="kongjians">家庭空间</div>
    <div class="chengyuan">
      <div class="chengyuantext">
        {{sixs.sixt1}}<i>.</i>
        <p>{{sixs.sixt2}}</p>
      </div>
      <div class="chengyuantoxiang">
        <img :src="sixs.imgs" alt="" />
      </div>
    </div>

  </div>
</template>

<script>
import getlink from "../../apis/getapi"
export default {
  data() {
    return {
      sixs:{},
    };
  },
  mounted() {
    getlink("/data/list/xiaoming").then((ok)=>{
      console.log(ok.data.homesix);
      this.sixs = ok.data.homesix;
    })
  }
};
</script>

<style scoped>


.jiatings {
  width: 90%;
  height: 1.8rem;
  margin: auto;
}
.kongjians {
  width: 100%;
  height: 0.5rem;
  font-size: 0.2rem;
  line-height: 0.5rem;
}
.chengyuan {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 1rem;
  background: #fdfffe;
  border-radius: .2rem;
}
.chengyuantext {
   margin-left: .1rem;
  width: 62%;
  height: 100%;
  font-size: 0.2rem;
  
}
.chengyuantoxiang {
  width: 20%;
  height: 73%;
  margin-top: 0.15rem;
  border-radius: 50%;
}
.chengyuantoxiang img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  margin-bottom: .33rem;
}
.chengyuantext i {
  color: red;
}
.chengyuantext p {
  font-size: 0.16rem;
}
</style>